import React, { Component } from 'react';
import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';

export default function notfound() {
  const navigate = useNavigate();
  function back() {
    navigate('/dashboard/workplace');
  }

  return (
    <div className="">
      <Result
        status="404"
        title="404"
        subTitle="抱歉，未找到你要的页面~"
        extra={<Button type="primary" onClick={back}>返回首页</Button>}
      />
    </div>
  )
}